/*
 * EnergyCalibration.hh
 *
 *  Created on: Sep 29, 2014
 *      Author: suligab
 */

#ifndef ENERGYCALIBRATION_HH_
#define ENERGYCALIBRATION_HH_

#include <iostream>
#include <fstream>
using namespace std;
class EnergyCalibration {
public:
	EnergyCalibration();
	~EnergyCalibration();

	double A0;
	double A1;
	double A2;
	double A3;
	double A4;
	int rank;
	int detId;
	double ComputeEnergy(int adcValue); //return the calibrated energy
	friend ostream& operator<<(ostream& output, const EnergyCalibration& p);
	friend istream& operator>>(istream& input, EnergyCalibration& p);
};

#endif /* ENERGYCALIBRATION_HH_ */
